package com.hk.web.domain.lifeCycle.repository;

import com.hk.commons.enums.Whether;
import com.hk.web.domain.entity.Article;
import com.hk.web.domain.entity.Merchant;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Antinomy
 * @date 17/11/1
 */
@Repository
public interface MerchantRepository extends JpaRepository<Merchant, Long> {

    /**
     * @param merchantName
     * @return
     */
    Merchant findByNameAndEnable(String merchantName, Whether enable);

    Merchant findByMerchantKeyAndEnable(String merchantKey, Whether enable);
}
